<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<tiles:insertDefinition name="mainTemplate">
  <tiles:putAttribute name="body">

    <div class="content">
      <h1>User and session info</h1>
      <p>
      <table>
        <col width="200">
        <col width="450">
        <tr>
          <td>Username</td>
          <td>${username}</td>
        </tr>
        <tr>
          <td>Authorities</td>
          <td>
            <c:forEach items="${authorities}" var="item">
              <c:out value="${item}" />
            </c:forEach>
          </td>
        </tr>


      </table>
    </p>

    </div>

  </tiles:putAttribute>
</tiles:insertDefinition>